#include <iostream>
#include "LinkQueue.h"


int main()
{
    MyQueue queue;

    clock_t start, end;
    double cpu_time_used;

    start = clock();
    for(int idx = 0; idx <10000000; idx++)
    {
        queue.push(idx);
    }
    end = clock();
    
    cpu_time_used = ((double)(end - start)) / CLOCKS_PER_SEC;
    
    printf("程序执行时间为 %f 秒\n",cpu_time_used);
    std::cout << "size:"<<queue.size()<<std::endl;
    // queue.push(11);
    // queue.push(22);
    // queue.push(33);
    // queue.push(44);
    // queue.push(88);

    // std::cout << "size:"<<queue.size()<<std::endl;

    // while(!queue.empty())
    // {
    //     std::cout<<"front:"<<queue.front()<<std::endl;
    //     queue.pop();
    // }

    // std::cout << "size:"<<queue.size()<<std::endl;

    return 0;
}